package com.six.firstpage.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.six.core.entity.Goods;
import com.six.core.entity.Zone;

import java.util.List;

/**
* @author ZZH
* @description 针对表【tb_zone(专区)】的数据库操作Service
* @createDate 2023-02-27 10:21:18
*/
public interface ZoneService extends IService<Zone> {

    //前台查询所有专区
    List<Zone> getAllZone();

    //查找专区
    Page<Zone> getZoneByName(String name,Integer status,Integer current, Integer pageSize);

    //添加专区
    Integer addZone(Zone zone);

    //修改专区
    Integer updateZone(Zone zone);

    //逻辑删除专区
    Integer delZone(Integer id);

    //根据专区Id查询对应的专区商品
    Page<Goods> getGooodsByZoneId(Integer zoneId);
}
